package org.csu.mypetstore.service;

import org.csu.mypetstore.domain.Management;
import org.csu.mypetstore.persistence.ManagementMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ManagementService {
    @Autowired
    ManagementMapper managementMapper;

    public Management getManagementByUsernameAndPassword(String username,String password){
        Management management = new Management();
        management.setPassword(password);
        management.setUsername(username);
        return managementMapper.getManagementByUsernameAndPassword(management);
    }
}
